package com.fiberhome.app.network.socket;

/**
 * Created by Deed on 2018/1/18.
 */

public class SocketFactory {

    /**
     *
     * @param inetAddress
     * @param port
     * @return
     */
    public TcpBuilder tcp(String inetAddress, int port) {
        return new TcpBuilder(port,inetAddress);
    }

    /**
     *
     * @param inetAddress
     * @param port
     * @return
     */
    public UdpBuilder udp(String inetAddress,int port) {
        return new UdpBuilder(port,inetAddress);
    }
}
